package com.ming.mq.controller;


import com.ming.mq.fanout.FanoutMQSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fanout")
public class FanoutController {
    @Autowired(required = false)
    private FanoutMQSender fanoutMQSender;

    @RequestMapping("/send")
    public void send(){
        fanoutMQSender.send("消息");
    }


}
